<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::rule('admin','admin/Index/index');
Route::rule('','admin/Index/index');

/**************************后台*******************************/
Route::group('admin', function () {
	Route::group('login', function () {
		Route::GET('index', 'admin/Login/index');			//登录页
		Route::POST('up_login', 'admin/Login/up_login');	//退出登录
		Route::GET('captchaimg', 'admin/Login/captchaImg'); //验证码
	    Route::POST('do', 'admin/Login/login_do');			//登录验证
	});

	//默认首页
	Route::group('home', function () {
	    Route::GET('index', 'admin/Home/index');
	});

	Route::group('index', function () {
	    Route::GET('index', 'admin/Index/index');
	    Route::GET('personal_center', 'admin/Index/personal_center');
	    Route::POST('personal_center', 'admin/Index/personal_center');
	});
});
/**************************后台*******************************/